package org.xs.object.dao.page;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
@Data
@Schema(description = "分页请求对象")
public class PageResquest {
    @Schema(description = "页码", example = "1", defaultValue = "1")
    private Integer pageNum;//当前页码
    @Schema(description = "每页数量", example ="3", defaultValue = "3")
    private Integer pageSize;//每页数量
    @Schema(description = "排序", example = "id", defaultValue = "id")
    private String sort;//排序字段
}
